:root {
  --main-color: #ffffff;
  --second-color: #fafafa;
  --main-text-color: #000000;
  --bar-color: #8dc26f;
}

@primarycolor: var(--main-color);
@secondcolor: var(--second-color);
@color3: var(--bar-color);
@mintextcolor: var(--main-text-color);
@bgc: #9bbd87;

* {
  margin: 0px;
  padding: 0;
  list-style: none;
}

.article-page {
  background-color: @bgc;

  h1 {
    margin-top: 15px;
    margin-bottom: 15px;
  }

  h2 {
    margin-top: 10px;
    margin-bottom: 10px;
  }

  p {
    margin-top: 15px;
  }

  .text-bold {
    font-size: 16px;
    font-weight: 700;
  }

  .part {
    font-weight: 700;
  }

  @media only screen and (min-width: 1200px) {
    .article-content {
      width: 710px;
    }

    .top {
      margin-bottom: calc(1%);
    }

    .title-image {
      height: 420px;
    }

    .follow-button {
      margin: 25px 5px;
    }
  }

  @media only screen and (min-width: 700px) and (max-width: 1200px) {
    .article-content {
      width: calc(60%);
    }

    .top {
      margin-bottom: 10px;
    }

    .follow-button {
      margin: 25px 5px;
    }

    .title-image {
      height: calc(34vw);
    }
  }

  @media only screen and (min-width: 450px) and (max-width: 700px) {
    .top {
      margin-bottom: 5px;
    }

    .title-image {
      height: 230px;
    }

    .follow-button {
      margin: 5% 0;
    }
  }

  @media only screen and (max-width: 450px) {
    .article-content {
      .top {
        margin-bottom: 5px;
      }

      .info {
        width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .follow-button {
        margin: 7% 0;
        padding: 5px;
        width: 50px;
      }

      .title-image {
        height: 200px;
      }
    }
  }

  ///內部布局
  .article-content {
    background-color: @primarycolor;
    padding: 30px;
    margin-left: auto;
    margin-right: auto;
    /*实现宽度和浏览器窗口宽度一样*/
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.2), 0 5px 5px 0 rgba(0, 0, 0, 0.24);

    .top {
      height: 80px;
      width: 100%;
    }

    .author {
      margin-top: 5px;
      float: left;
      display: flex;
      flex-direction: row;

      .personal-image {
        display: inline-block;
        width: 50px;
        height: 50px;
        background: url(../../assets/person.png) no-repeat 80% center;
        -moz-background-size: 100% 100%;
        background-size: 100% 100%;
        border-radius: 50px;
        margin-right: 5px;
      }

      .info {
        margin-bottom: 10px;
        margin-left: 5px;
        .Name {
          font-size: 18px;
          font-weight: bold;
        }
      }
    }

    .follow-button {
      float: right;
      outline: 0;
      background: @color3;
      width: 60px;
      border: 0;
      padding: 8px;
      border-radius: 3px;
      color: @primarycolor; //字體-白
      font-size: 14px;
    }

    .title-image {
      background-image: url(../../assets/header.jpg);
      -moz-background-size: 100% 100%;
      background-size: 100% 100%;
      width: 100%; //5:3
    }
  }
}
